package com.xzg.erp.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xzg.erp.common.BaseEntity;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
 * <p>
 * 附件表
 * </p>
 *
 * @author qwc
 * @since 2025-02-13
 */
@Getter
@Setter
@ToString
@TableName("attachment")
public class Attachment extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 附件名称
     */
    @TableField("name")
    private String name;

    /**
     * 产品类型
     */
    @TableField("type")
    private String type;

    /**
     * 关联表
     */
    @TableField("related_table")
    private String relatedTable;

    /**
     * 关联表id
     */
    @TableField("related_table_primary_key")
    private Integer relatedTablePrimaryKey;

    /**
     * 附件位置
     */
    @TableField("position")
    private String position;
}
